import Mock from 'mockjs';
export const tableData = [
  {
    "id": 1,
    "goods": "苹果",
    "todayMark": 10,
    "monthMark": 50,
    "totalMark": 200
  },
  {
    "id": 2,
    "goods": "香蕉",
    "todayMark": 8,
    "monthMark": 45,
    "totalMark": 190
  },
  {
    "id": 3,
    "goods": "橙子",
    "todayMark": 12,
    "monthMark": 60,
    "totalMark": 250
  },
  {
    "id": 4,
    "goods": "葡萄",
    "todayMark": 7,
    "monthMark": 40,
    "totalMark": 180
  },
  {
    "id": 5,
    "goods": "草莓",
    "todayMark": 9,
    "monthMark": 55,
    "totalMark": 240
  },
  {
    "id": 6,
    "goods": "芒果",
    "todayMark": 6,
    "monthMark": 35,
    "totalMark": 170
  }
]

export const orderDate = {
  todayOrderDate: [
    {
      id: 1,
      salesVolume: "1234",
      name: "今日支付订单",
      icon: "CheckCircleOutlined",
      color: "#6dcec6",
    },
    {
      id: 2,
      salesVolume: "4567",
      name: "今日收藏订单",
      icon: "ClockCircleOutlined",
      color: "#ebbb89",
    },
    {
      id: 3,
      salesVolume: "7890",
      name: "今日未支付订单",
      icon: "CloseCircleOutlined",
      color: "#78b1e7",
    }
  ],
  monthOrderDate: [
    {
      id: 1,
      salesVolume: "12345",
      name: "本月支付订单",
      icon: "CheckCircleOutlined",
      color: "#6dcec6",
    },
    {
      id: 2,
      salesVolume: "67890",
      name: "本月收藏订单",
      icon: "ClockCircleOutlined",
      color: "#ebbb89",
    },
    {
      id: 3,
      salesVolume: "34567",
      name: "本月未支付订单",
      icon: "CloseCircleOutlined",
      color: "#78b1e7",
    }
  ]
}

// 月份数据
export const monthOrderDate = Mock.mock({
  "array|5": [
    {
      "id": "@id",
      "name": "@cname",
      "data": {
        "202408": "@integer(1000, 3000)",
        "202409": "@integer(1000, 3000)",
        "202410": "@integer(1000, 3000)",
        "202411": "@integer(1000, 3000)",
        "202412": "@integer(1000, 3000)",
        "202501": "@integer(1000, 3000)",
        "202502": "@integer(1000, 3000)",
        "202503": "@integer(1000, 3000)",
      }
    }
  ]
});

// 周数据
export const weekOrderDate = Mock.mock({
  "array|2": [ // 数组包含 2 个对象
    {
      "id": "@id", // 随机 id
      "name": "@cname", // 随机中文名字
      "list|7": [ // 每个对象的 list 数组包含 7 个对象
        {
          "id": "@id", // 随机 id
          "week|+1": 0, // 从 0 开始依次递增，确保唯一
          "data": "@integer(300, 1200)" // 每天的数据为 0-600 的随机整数
        }
      ]
    }
  ]
});

// 个人数据
export const personalData = Mock.mock({
  "array|6": [
    {
      "id": "@id",
      "name": "@cname",
      "value": "@integer(300, 1200)",
    }
  ]
});

